package gminet.infra.dao;

import java.io.Serializable;

public abstract class TransferObject implements Serializable {

    private static final long serialVersionUID = -7011478223033237776L;
    
    private int codigo;

    public TransferObject() {

        super();
    }

    public int getCodigo() {
        return codigo;
    }
    
    public void setCodigo(int codigo) {
        this.codigo = codigo;
    }

    @Override
    public boolean equals(Object simpleObject) {

        boolean isEqual = false;
        if (simpleObject instanceof TransferObject) {
            isEqual = ((TransferObject) simpleObject).getCodigo() == getCodigo();
        }
        return isEqual;
    }

}
